package com.yimils.core.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yimils.core.sys.entity.RoleEntity;


import java.util.List;

public interface RoleService extends IService<RoleEntity> {
    List<RoleEntity> getRoleList(Integer type);
    List<RoleEntity> getRolesByType(Integer type);
    boolean createRole(RoleEntity role);
    boolean deleteRole(Long id);
    RoleEntity getRoleByUserId(Long userId);

    Long TYPE_INSIDE = 1L;//内部
    Long TYPE_OUTSIDE = 2L;//外部


}
